package dao.impl;

import java.util.Random;

import dao.BaseDao;

public class BaseDaoImpl implements BaseDao{
	
	private ConnectionPool pool;
	
	private Random rnd;
	
	public ConnectionPool getPool()
	{
		return this.pool;
	}
	
	public void setPool(ConnectionPool pool)
	{
		this.pool = pool;
	}

	public Long getRandom() {

		if(rnd==null)
		{
			rnd = new Random(10000000);
		}
		return rnd.nextLong();
	}

}
